package com.txzt.gaea.business.project.domain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.txzt.gaea.flow.vo.FlowBizStepVo;
import lombok.Data;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.annotatoin.UpdateIgnore;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@Table(name="tb_project_log")
public class ProjectLog {

    /*主键id*/
    private Long id ;
    /*项目id*/
    private Long projectId ;
    /*流程id*/
    private Long flowId ;
    /*计划时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date planTime ;
    /*实际时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date actualTime ;
    /*内容*/
    private String contentText ;
    /*目标*/
    private String contentTarget ;
    /*文件*/
    private String filePath ;
    /*操作类型*/
    private Integer operateType ;
    /*操作人*/
    private Long createBy ;
    /*操作时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime ;
    /*操作人名*/
    @UpdateIgnore
    @InsertIgnore
    private String createName;

    /*审核步骤*/
    private List<FlowBizStepVo> stepList;
}
